package cn.glc.daily.life.web.service.user.impl;

import cn.glc.daily.life.infrastructure.repository.mysql.MysqlRepositories;
import cn.glc.daily.life.model.to.RolePermissionTo;
import cn.glc.daily.life.web.service.user.RolePermissionService;
import org.springframework.stereotype.Service;

/**
 * @author simon
 * @date 2020/11/9 9:54
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Service
public class RolePermissionServiceImpl implements RolePermissionService {

    @Override
    public RolePermissionTo findAllByRoleId(String roleId) {
        RolePermissionTo rolePermissionTo = MysqlRepositories.rolePermissionRepository.findAllByRoleId(roleId);
        return rolePermissionTo;
    }
}
